# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=perl-test-object
pkgver=0.08
pkgrel=5
pkgdesc="Thoroughly testing objects via registered handlers"
arch=('any')
license=('PerlArtistic')
url="https://metacpan.org/release/Test-Object"
depends=('perl')
options=('!emptydirs')
source=("https://cpan.metacpan.org/authors/id/E/ET/ETHER/Test-Object-$pkgver.tar.gz")
sha512sums=('c528ee4d8eebb26cc336344765f1c5d402f020dae42f658164a5b2954c48975ccf33dafa768228bddff7583af5cd219959a82d037408c250cf162d59ab3a90d1')

build() {
  cd Test-Object-$pkgver
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd Test-Object-$pkgver
  make test
}

package() {
  cd Test-Object-$pkgver
  make DESTDIR="$pkgdir" install
}
